package com.wangdao.wechatmall.bean.vo.admin;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author liyongqiang
 * CreateDate 2021/7/8 21:59
 */


@NoArgsConstructor
@Data
public class RegionVO {

    @JsonProperty("id")
    private Integer id;
    @JsonProperty("name")
    private String name;
    @JsonProperty("type")
    private Integer type;
    @JsonProperty("code")
    private Integer code;
    @JsonProperty("children")
    private List<ChildrenDTO> children;

    @NoArgsConstructor
    @Data
    public static class ChildrenDTO {
        @JsonProperty("id")
        private Integer id;
        @JsonProperty("name")
        private String name;
        @JsonProperty("type")
        private Integer type;
        @JsonProperty("code")
        private Integer code;
        @JsonProperty("children")
        private List<Children> children;

        @NoArgsConstructor
        @Data
        public static class Children {
            @JsonProperty("id")
            private Integer id;
            @JsonProperty("name")
            private String name;
            @JsonProperty("type")
            private Integer type;
            @JsonProperty("code")
            private Integer code;
        }
    }
}

